package com.lhkj.iams.framework.webservice.service;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.ws.rs.Consumes;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
/**
 * webservice的接口类与服务实现类的namespace保持一致 否则会找不到
 */
@WebService(targetNamespace = "http://prospect.service.com",
            name = "prosService")
@Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) //返回类型
@Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) //请求类型
public interface ProspectService {
    @WebMethod
    @WebResult(name = "String",targetNamespace = "")
    String sendMessage(@WebParam(name = "message") String message);
}
